<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
//class zetro is shorted load view, just for simple method
class Zetro extends CI_Model
{
	function __construct(){
		parent::__construct();
		$this->load->library('zetro_auth');
	}
	
	function Header(){
		$this->load->view('admin/header');	
	}
	
	function Footer(){
		$this->load->view('admin/footer');	
	}
	function list_data($data){
		$this->data=$data;
	}
	function View($view){
		$this->Header();
		$this->zetro_auth->view($view);
		$this->load->view($view,$this->data);	
		$this->Footer();
	}
	
	function stat_doc($stat='N')
	{
		$this->stat_doc=$stat;	
	}
	
	function img_tipe($tipe='')
	{
		$this->img_tipe=$tipe;	
	}
	
	function button($id,$oneButton=true)
	{
		return img_aksi($id,$oneButton,$this->img_tipe);	
	}
}

?>